function pub_showerror(msg , tit , n , txt1 , txt2)
{
    outjs_open_2();
    var w = $('.main').width();
    var xyobj     = pub_getall_xy();
    var w         = xyobj.jq_body_w;
    var h         = xyobj.all_h + 5;  //页面总高
    var st        = xyobj.sr_t;  //卷去的高
    var doch      = xyobj.doc_h;
    var zindex    = $('.pai_login_tips').css('z-index');  //覆层层级
    var ohh       = st + parseInt(doch*0.1);
    var oww       = parseInt(w*0.05);
    $('.lot_outbtbg').css({'width':w+'px','height':h+'px'});
    $('.loginouttips').css({'width':(w * 0.9)+'px','height': (w * 0.7)+'px','top':'2rem','left':(w*0.05) + 'px'});
    $('.lotsi_txt_sno').html(msg);
    var th        = $('.lotsi_txt_sno').height();
    $('.lotsi_txt').css({'height':th * 2.2+'px'});
    $('.loginouttips').css({'height':th*4.2+'px'});
}

function pub_getall_xy()
{
    var reobj = new Object();
    //原生
    reobj.body_w = document.body.clientWidth; //BODY对象宽度
    reobj.body_h = document.body.clientHeight; //BODY对象高度

    reobj.doc_w = document.documentElement.clientWidth; //可见区域宽度
    reobj.doc_h = document.documentElement.clientHeight; //可见区域高度

    reobj.all_w = document.documentElement.scrollWidth;  //页面总高（正确的）
    reobj.all_h = document.documentElement.scrollHeight;  //页面总高

    reobj.sr_t = document.documentElement.scrollTop;    //卷去的高（正确的）
    reobj.sr_l = document.documentElement.scrollLeft;

    reobj.off_w = document.body.offsetWidth; //网页可见区域宽(包括边线的宽)
    reobj.off_h = document.body.offsetHeight; //网页可见区域高(包括边线的高)

    reobj.scroll_w = document.body.scrollWidth; //网页正文全文宽
    reobj.scroll_h = document.body.scrollHeight; //网页正文全文高


    reobj.scroll_t = document.body.scrollTop; //网页被卷去的高
    reobj.scroll_l = document.body.scrollLeft; //网页被卷去的左

    reobj.screen_t = window.screenTop; //网页正文部分上
    reobj.screen_l = window.screenLeft; //网页正文部分左

    reobj.screen_w = window.screen.width; //屏幕分辨率的宽
    reobj.screen_h = window.screen.height; //屏幕分辨率的高

    reobj.screen_work_w = window.screen.availHeight; //屏幕可用工作区高度
    reobj.screen_work_h = window.screen.availWidth; //屏幕可用工作区宽度

    // 部分jQuery函数
    reobj.jq_win_w = $(window).width();　   //浏览器时下窗口可视区域宽度
    reobj.jq_win_h = $(window).height(); 　              //浏览器时下窗口可视区域高度
    reobj.jq_doc_w = $(document).width();  //浏览器时下窗口文档对于象宽度
    reobj.jq_doc_h = $(document).height();　           //浏览器时下窗口文档的高度
    reobj.jq_body_w = $(document.body).width();　　　　　//浏览器时下窗口文档body的高度
    reobj.jq_body_h = $(document.body).height();　　　　　//浏览器时下窗口文档body的高度
    reobj.jq_out_w = $(document.body).outerWidth(true); //浏览器时下窗口文档body的总宽度 包括border padding
    reobj.jq_out_h = $(document.body).outerHeight(true); //浏览器时下窗口文档body的总高度 包括border padding margin
    return reobj;
}

//单纯分钟和秒倒计时，传入余下的时秒数,回调函数名
function pub_resettime(times,callback , t){
    if(typeof(t) == 'undefined')t=0;
    if(t == 1)
    {
        clearInterval(pub_backtimer);
    }
    var timer=null;
    var t=times;
    var m=0;
    var s=0;
    m=Math.floor(t/60%60);
    m<10&&(m='0'+m);
    s=Math.floor(t%60);
    function pr_countdown(){
        s--;
        s<10&&(s='0'+s);
        if(s.length>=3){
            s=59;
            m="0"+(Number(m)-1);
        }
        if(m.length>=3){
            m='00';
            s='00';
            if(t == 0)
            {
                clearInterval(timer);
            }
            else
            {
                clearInterval(pub_backtimer);
            }
        }
        //console.log(callback + '|' + m+"分钟"+s+"秒");
        if(typeof(callback) != 'undefined')
        {
            var caf = callback+'('+m+','+s+')';
            eval(caf);
        }
    }
    if(times > 0)
    {
        if(t == 0) {
            timer = setInterval(pr_countdown, 1000);
        }
        else
        {
            pub_backtimer = setInterval(pr_countdown, 1000);
        }
    }
}

//带天数的倒计时，传入余下的时秒数,回调函数名
function pub_countdown(times,callback , t){
    if(typeof(t) == 'undefined')t=0;
    if(t == 1)
    {
        clearInterval(pub_backtimer);
    }
    var timer=null;
    function pc_countdown()
    {
        if(times<=0){
            if(t == 0)
            {
                clearInterval(timer);
            }
            else
            {
                clearInterval(pub_backtimer);
            }
        }
        var day=0,
            hour=0,
            minute=0,
            second=0;//时间默认值
        if(times > 0){
            day = Math.floor(times / (60 * 60 * 24));
            hour = Math.floor(times / (60 * 60)) - (day * 24);
            minute = Math.floor(times / 60) - (day * 24 * 60) - (hour * 60);
            second = Math.floor(times) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
        }
        //if (day <= 9) day = '0' + day;
        //if (hour <= 9) hour = '0' + hour;
        //if (minute <= 9) minute = '0' + minute;
        //if (second <= 9) second = '0' + second;
        //
        //console.log(callback+"|"+day+"天:"+hour+"小时："+minute+"分钟："+second+"秒");
        if(typeof(callback) != 'undefined')
        {
            var caf = callback+'('+day+','+hour+','+minute+','+second+')';
            eval(caf);
        }
        times--;
    }
    if(times > 0)
    {
        if(t == 0)
        {
            timer=setInterval(pc_countdown,1000);
        }
        else
        {
            pub_backtimer=setInterval(pc_countdown,1000);
        }
    }
}

//转码函数charCodeAt 
function pub_compileStr(code){
    var c=String.fromCharCode(code.charCodeAt(0)+code.length);  
    for(var i=1;i<code.length;i++){        
        c+=String.fromCharCode(code.charCodeAt(i)+code.charCodeAt(i-1));  
    }
    return escape(c);
}
//字符串进行解密   
function pub_uncompileStr(code){
    code = unescape(code);        
    var c=String.fromCharCode(code.charCodeAt(0)-code.length);        
    for(var i=1;i<code.length;i++){        
        c+=String.fromCharCode(code.charCodeAt(i)-c.charCodeAt(i-1));        
    }
    return c;
}  
